using LiJ.Common.Extention;

namespace LiJ.Framework.Msg.Mos
{
	/// <summary>
	/// 上报地理位置事件
	/// </summary>
	public class WxLocationRecEventMsg : WxBaseRecEventMsg
	{
		/// <summary>
		/// 地理位置纬度
		/// </summary>
		public double Latitude
		{
			get;
			set;
		}

		/// <summary>
		/// 地理位置经度
		/// </summary>
		public double Longitude
		{
			get;
			set;
		}

		/// <summary>
		/// 地理位置精度
		/// </summary>
		public double Precision
		{
			get;
			set;
		}

		/// <summary>
		/// 格式化自身属性部分
		/// </summary>
		protected override void FormatPropertiesFromMsg()
		{
			base.FormatPropertiesFromMsg();
			this.Latitude = base["Latitude"].ToDouble(0.0);
			this.Longitude = base["Longitude"].ToDouble(0.0);
			this.Precision = base["Precision"].ToDouble(0.0);
		}
	}
}
